package com.enjoyor.soa.traffic.core.efoms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.efoms.domain.DicLabelInfo;
import com.enjoyor.soa.traffic.core.efoms.domain.PortaritInfo;
import com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;

@Service
@Transactional
public class AssetInfoMapper extends BaseMapper implements IAssetInfoMapper{

	@Override
	public List<Map> getDevFaultPie(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper.getDevFaultPie", map);
	}

	@Override
	public List<Map> getDevFaultLine(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper.getDevFaultLine", map);
	}

	@Override
	public List<Map> getDevCheckTimesLine(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper.getDevCheckTimesLine", map);
	}

	@Override
	public List<Map> getDevWarnTypePie(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper.getDevWarnTypePie", map);
	}
	
	@Override
	public List<Map> getDevWranTimesLine(Map<String,Object> map){
		return sqlSessionTemplate.selectList("com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper.getDevWranTimesLine", map);
	}
	
	public List<PortaritInfo> getPortRait(Map<String,Object> map){
		return sqlSessionTemplate.selectList("com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper.getPortRait", map);
	}
	
	public List<DicLabelInfo> getDicLabel(Map<String,Object> map){
		return sqlSessionTemplate.selectList("com.enjoyor.soa.traffic.core.efoms.mapper.IAssetInfoMapper.getDicLabel", map);
	}

}
